#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <termios.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/time.h>
#include <time.h>


int main()
{
    long l;
    unsigned char b1, b2, b3, b4;

    l = 123 * 100;

    b1 = (l & 0x0000007f);

    l = l >> 7;

    b2 = (l & 0x0000007f);

    l = l >> 7;

    b3 = (l & 0x0000007f);


    printf ("b1 = %x\nb2 = %x\nb3 = %x\n", b1, b2, b3);


    b4 = ((((b3 << 7) | b2) << 7) | b1) * 0.01;

    printf ("b1 = %x\nb2 = %x\nb3 = %x\nb4 = %d\n", b1, b2, b3, b4);

    printf ("float 1>>6 = %f\n", 1>>6);
    return 0;
}

